package IoC;

public class Framework {
    private Bottom bottom;
    public String color ;
    public Framework(int size,String color){
         bottom = new Bottom(size);
         this.color = color;
    }
    public void init(){
        System.out.println("车身颜色:"+color);
        //依赖底座
        bottom.init();
    }
}
